package com.zhtkj.constant;

/** 
* @ClassName: AccessData 
* @Description: 每次分析需要的一些基础数据  
* @author mafeng
* @date 2017年10月30日 上午11:02:23 
* 
*/
public class AccessData {

	//待分析的车牌号集合
	private CarConstant carConstant;
	
	//运输核准证相关数据
	private CardConstant cardConstant;
	
	//围栏相关数据
	private FenceConstant fenceConstant;

	public CarConstant getCarConstant() {
		return carConstant;
	}

	public void setCarConstant(CarConstant carConstant) {
		this.carConstant = carConstant;
	}

	public CardConstant getCardConstant() {
		return cardConstant;
	}

	public void setCardConstant(CardConstant cardConstant) {
		this.cardConstant = cardConstant;
	}

	public FenceConstant getFenceConstant() {
		return fenceConstant;
	}

	public void setFenceConstant(FenceConstant fenceConstant) {
		this.fenceConstant = fenceConstant;
	}
	
	public void clearData() {
		if (this.carConstant != null) {
			this.carConstant.getCarMap().clear();
		}
		if (this.cardConstant != null) {
			this.cardConstant.getCardMap().clear();
			this.cardConstant.getCarConsappMap().clear();
			this.cardConstant.getCarUnloadingMap().clear();
			this.cardConstant.getCarLineMap().clear();
		}
		if (this.fenceConstant != null) {
			this.fenceConstant.getConsappMap().clear();
			this.fenceConstant.getParkingMap().clear();
			this.fenceConstant.getRestrictMap().clear();
			this.fenceConstant.getUnloadingMap().clear();
			this.fenceConstant.getLineMap();
		}
	}
	
}
